package sk.tuke.utils;

import sk.tuke.domain.Address;
import sk.tuke.domain.Diagnose;
import sk.tuke.domain.Phone;
import sk.tuke.persistance.AddressPo;
import sk.tuke.persistance.DiagnosePo;
import sk.tuke.persistance.PhonePo;

public class MapperDomainToPo {

	public AddressPo mapAddressToAddressPo(Address address) {
		AddressPo addressPo = new AddressPo();
		addressPo.setCity(address.getCity());
		addressPo.setCountry(address.getCountry());
		addressPo.setName(address.getName());
		addressPo.setStreet(address.getStreet());
		addressPo.setStreetNum(address.getStreetNum());
		addressPo.setZip(address.getZip());
		return addressPo;
	}

	public PhonePo mapPhoneToPhonePo(Phone phone) {
		PhonePo phonePo = new PhonePo();
		phonePo.setPhoneNumber(phone.getPhoneNumber());
		return phonePo;
	}
	
	public DiagnosePo mapDiagnoseToDiagnosePo(Diagnose diagnose) {
		DiagnosePo diagnosePo = new DiagnosePo();

		return diagnosePo;
	}

}
